package com.smart.community.region.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 导入结果VO
 * 
 * @author Wu.Liang
 * @since 2025-01-30
 */
@Data
@Schema(description = "导入结果VO")
public class ImportResult {

    @Schema(description = "任务ID")
    private String taskId;

    @Schema(description = "是否成功")
    private Boolean success;

    @Schema(description = "楼栋导入数量")
    private Integer buildingCount;

    @Schema(description = "单元导入数量")
    private Integer unitCount;

    @Schema(description = "房户导入数量")
    private Integer householdCount;

    @Schema(description = "错误数量")
    private Integer errorCount;

    @Schema(description = "开始时间")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    private LocalDateTime endTime;

    @Schema(description = "耗时(毫秒)")
    private Long duration;

    @Schema(description = "错误信息")
    private String errorMessage;
}
